package com.zszedu.service;

import com.zszedu.mapper.AccountMapper;
import com.zszedu.pojo.Account;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

@DubboService
public class AccountServiceImpl implements AccountService{
    @Autowired
    private AccountMapper accountMapper;

    @Override
    public Account queryAccount(Long uid) {
        return accountMapper.queryAccount(uid);
    }

    @Override
    public Integer editDelMoney(Long uid, Double money) {
        return accountMapper.editMoney(uid,money);
    }

    @Override
    public void editAddMoney(Long uid, Double money) {
        accountMapper.editAddMoney(uid, money);
    }
}
